package com.jgraves.WikiToSpeech.objects;

import java.util.ArrayList;


/** A Question object 
 * @author johngraves
 * Questions may have: 
 * an identifier (tag), 
 * a link to an image file (questionLink),
 * text of the question or statement (questionTexts),
 * answers (a list of Answer objects),
 * a language
 */
public class Question {

	private String tag = "";
	private String questionLink = "";
	private Boolean hideWebView = false; // flag to end web view and return to text display
	private ArrayList<String> questionTexts = new ArrayList<String>();
	private ArrayList<Answer> answers = new ArrayList<Answer>();
	private String language;
	
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getQuestionLink() {
		return questionLink;
	}
	public void setQuestionLink(String questionLink) {
		this.questionLink = questionLink;
	}
	public Boolean getHideWebView() {
		return hideWebView;
	}
	public void setHideWebView(Boolean hideWebView) {
		this.hideWebView = hideWebView;
	}
	public ArrayList<String> getQuestionTexts() {
		return questionTexts;
	}
	public void setQuestionTexts(ArrayList<String> questionTexts) {
		this.questionTexts = questionTexts;
	}
	public void addQuestionText(String questionText) {
		this.questionTexts.add(questionText);
	}
	
	public ArrayList<Answer> getAnswers() {
		return answers;
	}
	public void setAnswers(ArrayList<Answer> answers) {
		this.answers = answers;
	}
	public void addAnswer(Answer answer) {
		this.answers.add(answer);
	}
	public Answer getAnswer(int i) {
		return answers.get(i);
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}

}
